package com.cskaoyan.service.wx;

import com.cskaoyan.model.admin.vo.BaseData;
import com.cskaoyan.model.vx.bo.WxCartCheckedBo;
import com.cskaoyan.model.vx.bo.WxCartUpdateBo;
import com.cskaoyan.model.vx.vo.WxCartListVo;
import com.cskaoyan.model.vx.vo.WxCheckoutVo;

/**
 * @description:
 * @author: 牛犇
 * @date 2021/12/2 10:42
 */
public interface WxCartService {
    WxCartListVo getCartIndex(Integer userId);

    WxCartListVo getCartChecked(WxCartCheckedBo wxCartCheckedBo);

    WxCartListVo deleteCartChecked(WxCartCheckedBo wxCartCheckedBo);

    void  updateCartGood(WxCartUpdateBo wxCartUpdateBo);

    int addCartGood(WxCartUpdateBo wxCartUpdateBo,Integer userId);

    int countCart(Integer userId);

    int fastAddCartGoods(WxCartUpdateBo wxCartUpdateBo,Integer userId);

    WxCheckoutVo checkOutCart(Integer cartId, Integer addressId, Integer couponId, Integer userCouponId, Integer grouponRulesId,Integer userId);

}
